const AsyncParallelHook = require('./myAsyncParallelHook.js');

let hook = new AsyncParallelHook(['name', 'age']);

hook.tapAsync('fn1', function (name, age, callback) {
  console.log('fn1:', name, age)
  callback();
})
hook.tapAsync('fn2', function (name, age, callback) {
  console.log('fn2:', name, age)
  callback();
})

hook.callAsync('abc1134', 12345, function () {
  console.log(`end----`)
})